import React from 'react';
import { View, Image } from '@tarojs/components';
import Taro, { useReady } from '@tarojs/taro';
import './index.less';

const Launch = () => {
  useReady(() => {
    setTimeout(() => {
      Taro.reLaunch({ url: '/pages/home/index' });
    }, 0);
  });

  return (
    <View className="launch-container">
      <Image
        src="https://file.linkcook.cn/image/wineMiniProgram/logo.png"
        className="launch-logo"
      />
    </View>
  );
};

export default Launch;
